package top.fkxuexi.smartwork.MetaEntity;

public class ForeignCelMeta extends ColMeta{

    // 引用的表的数据库的命名
    private String refTableName;
    // 引用的表的java的风格的命名
    private String refTableJavaName;
    // 引用的字段的数据库的命名
    private String refFiledName;
    // 引用的字的的java的风格的命名
    private String refFiledJavaName;

    public ForeignCelMeta(String javaAttrName, String dbAttrName,String dbAttrType,String dbJavaType,
                           String defaultValue, String comment,
                          boolean isKey, boolean isAutoIncrease, String refTableName,
                          String refTableJavaName, String refFiledName, String refFiledJavaName) {

        super(javaAttrName, dbAttrName, dbAttrType, dbJavaType,defaultValue, comment, isKey, isAutoIncrease);
        this.refTableName = refTableName;
        this.refTableJavaName = refTableJavaName;
        this.refFiledName = refFiledName;
        this.refFiledJavaName = refFiledJavaName;
    }

    public String getRefTableName() {
        return refTableName;
    }

    public void setRefTableName(String refTableName) {
        this.refTableName = refTableName;
    }

    public String getRefTableJavaName() {
        return refTableJavaName;
    }

    public void setRefTableJavaName(String refTableJavaName) {
        this.refTableJavaName = refTableJavaName;
    }

    public String getRefFiledName() {
        return refFiledName;
    }

    public void setRefFiledName(String refFiledName) {
        this.refFiledName = refFiledName;
    }

    public String getRefFiledJavaName() {
        return refFiledJavaName;
    }

    public void setRefFiledJavaName(String refFiledJavaName) {
        this.refFiledJavaName = refFiledJavaName;
    }

    @Override
    public String toString() {
        return "ForeignCelMeta{" +
                "refTableName='" + refTableName + '\'' +
                ", refTableJavaName='" + refTableJavaName + '\'' +
                ", refFiledName='" + refFiledName + '\'' +
                ", refFiledJavaName='" + refFiledJavaName + '\'' +
                '}';
    }
}
